<div class="row">
    <div class="col-md-12">
        <div class="block">
            <div class="block-title">
                <h2><strong>Lista de Paises</strong></h2>
            </div> 
            <div class="table-responsive">
                <table id="mechi" class="table table-vcenter table-condensed table-bordered">
                    <thead>
                        <tr>
                            <th class="text-center">ID</th>

                            <th>Pais</th> 
                            <th class="text-center">Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($paises as $pais): ?>
                            <tr>

                                <td class="text-center"><?php echo $pais['Paise']['id']; ?></td>
                                <td><?php echo $pais['Paise']['nombre']; ?></td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <?php //echo $this->Html->link('editar', array('action'=>'editar', $pais['Paise']['id']));?>
                                        <a href="<?php echo $this->Html->url(array('action' => 'editar', $pais['Paise']['id'])) ?>" data-toggle="tooltip" title="Editar" class="btn btn-xs btn-primary"><i class="fa fa-pencil"></i></a>

                                        <a href="<?php echo $this->Html->url(array('action' => 'eliminar', $pais['Paise']['id'])) ?>" data-toggle="tooltip" title="Eliminar" class="btn btn-xs btn-danger"><i class="fa fa-times"></i></a>
                                            <?php //echo $this->Html->link('Eliminar', array('action'=>'eliminar', $pais['Paise']['id']));?>
                                    </div>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div> 
</div>
<script>
    $(function() {
        TablesDatatables.init();
    });
    
    $(document).ready(function() {
        $('#mechi').dataTable();
    });
</script>